package com.mxf.code.prototype;

import lombok.Getter;
import lombok.Setter;
import org.springframework.context.annotation.Scope;

/**
 * Copyright (C), 2017-2022, mxf
 * Author: 28382
 * Date: 2022/10/13 15:03
 * FileName: TestP
 * Description:
 */
@Scope("prototype")
@Getter
@Setter
public class TestP implements Cloneable{
    private String id;
    private String name;

    @Override
    protected Object clone() throws CloneNotSupportedException {
        TestP testP = null;
        try {
            testP = (TestP) super.clone();
        } catch (Exception e) {
            System.out.println(e.getMessage());
        }
        return testP;
    }
}
